package cn.javacv.gulimall.ware.service;

import cn.javacv.gulimall.common.vo.SkuHasStockVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.javacv.gulimall.common.utils.PageUtils;
import cn.javacv.gulimall.ware.entity.WareSkuEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author dingqiang
 * @email 295213096@qq.com
 * @date 2020-06-04 17:28:38
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void addStock(Long skuId, Long wareId, Integer skuNum);

    List<SkuHasStockVO> getHasStock(List<Long> skuIds);
}

